import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve} from "path";
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve:{
    alias:{
      "core":resolve(__dirname,"vue/core/"),
      "shared":resolve(__dirname,"vue/shared/"),
      "v3":resolve(__dirname,"vue/v3"),
      "web":resolve(__dirname,"vue/platforms/web/"),
      "compiler":resolve(__dirname,"vue/compiler/"),
      "types":resolve(__dirname,"vue/types"),
      "vue":resolve(__dirname,"vue/platforms/web/entry-runtime-with-compiler"),
      sfc: resolve('packages/compiler-sfc/src'),
    }
  },
  define:{
    "__DEV__":true,
    'process.env': {}
  }
})
